package com.haipumi.biz.impl;

import java.util.List;

import com.haipumi.beans.JsonModel;
import com.haipumi.beans.haipumi_admins;
import com.haipumi.biz.IBackAdminBiz;
import com.haipumi.dao.IBackAdminDao;
import com.haipumi.dao.impl.BackAdminDaoImpl;

public class BackAdminBizImpl implements IBackAdminBiz {
	IBackAdminDao ibad=new BackAdminDaoImpl();
	@Override
	public haipumi_admins backlogin(haipumi_admins admin) {
		haipumi_admins backadmin=null;
		JsonModel jm=new JsonModel();
		
		backadmin=ibad.backlogin(admin);
		
		return backadmin;
	}
	@Override
	public List<haipumi_admins> findAllAdmins() {
		List<haipumi_admins>admins=ibad.findAllAdmins();
		return admins;
	}
	@Override
	public int countAllAdmins() {
		int r=ibad.countAllAdmins();
		return r;
	}
	@Override
	public haipumi_admins insertAdmin(haipumi_admins admin) {
		haipumi_admins backadmin=null;
		backadmin=ibad.insertAdmin(admin);
		return backadmin;
	}
	@Override
	public haipumi_admins editAdmin(haipumi_admins admin) {
		haipumi_admins backadmin=ibad.editAdmin(admin);
		
		return backadmin;
	}

}
